// JavaScript Document

<!-- inicio
var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)

document.onmousemove = posicRatonXY;
var posicX = 0
var posicY = 0

function posicRatonXY(e) {
	
if (document.documentElement && document.documentElement.scrollTop){
  // Explorer 6 Strict
  scrolTop = document.documentElement.scrollTop;
  scrolLeft = document.documentElement.scrollLeft;  
}
else if (document.body){
  // all other Explorers
  scrolTop = document.body.scrollTop;
  scrolLeft = document.body.scrollLeft;  
}

if (IE) { 
	posicX = event.clientX + scrolLeft;
	posicY = event.clientY + scrolTop;
}
else { 
	posicX = e.pageX;
	posicY = e.pageY;
};

if (posicX < 0) {
	posicX = 0;
};
if (posicY < 0) {
	posicY = 0;
};

//document.getElementById("Raton").RatonX.value = posicX;
//document.getElementById("Raton").RatonY.value = posicY;
return true }
// final -->

function vercapa(id,Xd,Yd) {
	var d = document.getElementById(id,Xd,Yd);
	d.style.left = ( posicX + Xd ) + "px";
	d.style.top = ( posicY + Yd ) + "px";

}
function movercapa(id,Xd,Yd) {
	var d = document.getElementById(id);
	d.style.display='block';
	d.style.left = ( posicX + Xd ) + "px";
	d.style.top = ( posicY + Yd ) + "px";
}
function ocultarcapa(id) {
	var d = document.getElementById(id);
	d.style.display='none';
}
